package com.example.demo.controller;

import com.example.demo.mapper.Student;
import com.example.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author :蕉绿
 * @Date : 2023/2/18 14:38
 * @Version : V1.0
 * @Description :
 */
@Controller
@ResponseBody
@RequestMapping("/student")
public class StudentController {
    @Autowired
    private StudentService service;
    @RequestMapping("/hi")
    public Student test() {
        System.out.println(service.getStudent());
        return service.getStudent();
    }
}
